/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>Project: jse2302 - User
 * <p>Powered by webrx On 2023-06-26 10:02:43
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Comparable<User> {
    private int id;
    private String name;

    @Override
    public int compareTo(User o) {
        return id - o.getId();
    }
}
